package com.castle.fortress.admin.study.course.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
 * 课程记录表 实体类
 *
 * @author castle
 * @since 2023-02-14
 */
@Data
public class StudyCourseLogDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@JsonProperty("id")
	private Long id;
	@ApiModelProperty(value = "所属课程ID")
	@JsonSerialize(using = ToStringSerializer.class)
	@JsonProperty("courseId")
	private Long courseId;
	@ApiModelProperty(value = "所属章节ID")
	@JsonSerialize(using = ToStringSerializer.class)
	@JsonProperty("chapterId")
	private Long chapterId;
	@ApiModelProperty(value = "所属课件ID")
	@JsonSerialize(using = ToStringSerializer.class)
	@JsonProperty("coursewareId")
	private Long coursewareId;
	@JsonProperty("memberId")
	private Long memberId;
	@JsonProperty("status")
	private Integer status;
	@ApiModelProperty(value = "已学时长 秒")
	@JsonProperty("studyTime")
	private Integer studyTime;
	@JsonSerialize(using = ToStringSerializer.class)
	@JsonProperty("createUser")
	private Long createUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonProperty("createTime")
	private Date createTime;

}
